home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_HDF.idb / usr / freeware / include / hdf / vg.h.z / vg.h
Encoding:
C/C++ Source or Header  |  1999-01-26  |  3.0 KB  |  73 lines

  1. /****************************************************************************
  2.  * NCSA HDF                                                                 *
  3.  * Software Development Group                                               *
  4.  * National Center for Supercomputing Applications                          *
  5.  * University of Illinois at Urbana-Champaign                               *
  6.  * 605 E. Springfield, Champaign IL 61820                                   *
  7.  *                                                                          *
  8.  * For conditions of distribution and use, see the accompanying             *
  9.  * hdf/COPYING file.                                                        *
  10.  *                                                                          *
  11.  ****************************************************************************/
  12.  
  13. /* $Id: vg.h,v 1.52 1998/02/10 18:59:14 bmribler Exp $ */
  14.  
  15. /*****************************************************************************
  16. *
  17. * vg.h
  18. *
  19. * Part of HDF VSet interface
  20. *
  21. * defines symbols and structures used in all v*.c files
  22. *
  23. * NOTES:
  24. * This include file depends on the basic HDF *.h files hdfi.h and hdf.h.
  25. * An 'S' in the comment means that that data field is saved in the HDF file.
  26. *
  27. ******************************************************************************/
  28.  
  29. #ifndef _VG_H
  30. #define _VG_H
  31.  
  32. /* --------------  H D F    V S E T   tags  ---------------------------- */
  33.  
  34. /* In what versions were these valid? */
  35. #define OLD_VGDESCTAG   61820   /* tag for a vgroup d */
  36. #define OLD_VSDESCTAG   61821   /* tag for a vdata descriptor */
  37. #define OLD_VSDATATAG   61822   /* tag for actual raw data of a vdata */
  38.  
  39. /* re-define what new ones are. Don't know why there are two sets but
  40.    made them conform to what was in 'htags.h' */
  41. #define NEW_VGDESCTAG    DFTAG_VG
  42. #define NEW_VSDESCTAG    DFTAG_VH
  43. #define NEW_VSDATATAG    DFTAG_VS
  44.  
  45. #define VGDESCTAG       NEW_VGDESCTAG
  46. #define VSDESCTAG       NEW_VSDESCTAG
  47. #define VSDATATAG       NEW_VSDATATAG
  48.  
  49. #define _HDF_VSPACK 0
  50. #define _HDF_VSUNPACK 1
  51. #define VG_ATTR_SET 0x00000001  /* this vgroup has attribute(s) */
  52. #define VS_ATTR_SET 0x00000001  /* this vdata has attribute(s) */
  53. #define _HDF_VDATA -1        /* used in vdata attr interface
  54.                            findex to represent the entire vdata  */
  55. #define _HDF_ENTIRE_VDATA _HDF_VDATA /* if users have already  used
  56.                             _HDF_ENTIRE_VDATA since 4.1b1 was out */
  57.  
  58. /* Size of the atom hash table */
  59. #define VATOM_HASH_SIZE 256
  60.  
  61. /* .................................................................. */
  62. #define VSET_NEW_VERSION    4  /* if attr or other new features are set */
  63. #define VSET_VERSION        3  /* DO NOT CHANGE!! */
  64. #define VSET_OLD_VERSION    2  /* All version <= 2 use old type mappings */
  65. #define VSET_OLD_TYPES        VSET_OLD_VERSION  /* For backward compatibility */
  66.  
  67. /* Only include the library header if the VSET_INTERFACE macro is defined */
  68. #ifdef VSET_INTERFACE
  69. #include <vgint.h>          /* Library VSet information header */
  70. #endif /* VSET_INTERFACE */
  71.  
  72. #endif                          /* _VG_H */
  73.